<template>
<div class="a">
<input type="radio" name="sex" id="" value="男" v-model="sex">男
<input type="radio" name="sex" id="" value="女" v-model="sex">女
<h2>{{sex}}</h2>
</div>
</template>

<script>
export default {
    data(){
        return{
            sex:"男"
        }
    }

}
</script>>